/**
 * 
 */

package com.qccx.ueuo.selfguide.dao;

import java.util.List;

import com.qccx.ueuo.selfguide.entity.Cooperation;

/**
 * 功能介绍:
 * 
 * @author rainJohn
 * @date [2013-4-27]
 */
public interface CooperationDao
{
    /**
     * 添加
     * 
     * @param cooperation
     * @return
     */
    int addCooperation( Cooperation cooperation );

    /**
     * 删除
     * 
     * @param id
     * @return
     */
    boolean deleteCooperationById( int id );

    /**
     * 更新
     * 
     * @param cooperation
     * @return
     */
    int updateCooperation( Cooperation cooperation );

    /**
     * 查询所有
     * 
     * @return
     */
    List<Cooperation> queryAllCooperation();

    /**
     * 通过id查找
     * 
     * @param id
     * @return
     */
    Cooperation queryCooperationById( int id );
}
